<?php
	namespace Admin\Model;
	use Think\Model;
	class UsersModel extends Model{
		protected $_validate = array(
			array('name','require','用户名不能为空!',1),
			array('phone','','该号码已经存在！',0,'unique',1)
		);
		protected $_auto = array(
			array('password','md5',self::MODEL_INSERT,'function'),
			array('regtime','getdate',self::MODEL_INSERT,'callback')
		);
		function getdate(){
			return date('Y-m-d-H-i-s');	
		}
	}
?>


